Northwind Test with Yukon

Products Above Average Price View

Owner

dbo

Creation Date

10-07-2003 10:31:36

Remarks


Columns

NameTypeLengthIsNullableCollation
ProductNamenvarchar80SQL_Latin1_General_CP1_CI_AS 
ProductNamesysname80SQL_Latin1_General_CP1_CI_AS 
UnitPricemoney8 

View Definition

create view "Products Above Average Price" AS
SELECT Products.ProductName, Products.UnitPrice
FROM Products
WHERE Products.UnitPrice>(SELECT AVG(UnitPrice) From Products)
--ORDER BY Products.UnitPrice DESC